//获取应用实例
var app = getApp();
Page({
    data: {

    },
    onLoad: function () {

    },
	  promptWords: function(text){
		  wx.showModal({
			  title: '下载邮证app',
			  content: text,
			  showCancel: false,
			  success: function(res) {
				  if (res.confirm) {
				  } else if (res.cancel) {
				  }
			  }
		  })
    },
    btnDownload:function (e) {
        if(app.isAndroid()){
            this.promptWords('请到应用市场中查找“邮证”下载安装');
        }else {
            this.promptWords('请到AppStore中查找“邮证”下载安装');
        }
    }
});
